// index.js
Page({
  data: {
       // 轮播图数据
    swiperList: [
        { id: 1, imgUrl: "/assets/index/swiper/a,png.webp" },
        { id: 2, imgUrl: "/assets/index/swiper/b.png" },
        { id: 3, imgUrl: "/assets/index/swiper/c.png" }
      ],
      // 菜单项数据（第一行）
      row1: [
        { id: 1, icon: "/assets/index/menu/ddq.png", text: "提前点单免排队",url:"/pages/category/category"},
        { id: 2, icon: "/assets/index/menu/xxs.png", text: "外卖及时送达" ,url:"/pages/category/category" },
        { id: 3, icon: "/assets/index/menu/ssg.png", text: "囤咖啡买周边" ,url:"/pages/category/category" }
      ],
      // 菜单项数据（第二行）
      row2: [
        { id: 1, icon: "/assets/index/menu/row2-1.png", text: "咖啡钱包" },
        { id: 2, icon: "/assets/index/menu/row2-2.png", text: "送TA咖啡" },
        { id: 3, icon: "/assets/index/menu/row2-3.png", text: "一键开票" },
        { id: 4, icon: "/assets/index/menu/row2-4.png", text: "现实活动" }
      ],
      // 邀请图片
      inviteImage: "/assets/index/invit/邀请.png"
  },
  inviteFriend(event){
      const app=getApp()
      console.log(app.globalData)
      console.log(event)
      console.log("点击了邀请好友")
  }


})
